﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataAccess.Models
{
	public sealed class MailMessage
	{
		[Key]
		public int MailID
		{
			get;
			set;
		}

		public string MailSubject
		{
			get;
			set;
		}

		public string MailContent
		{
			get;
			set;
		}

		public string MailFrom
		{
			get;
			set;
		}

		public DateTime MailSendTime
		{
			get;
			set;
		}

		public string MailAttFile
		{
			get;
			set;
		}

		public int MailIsDelete
		{
			get;
			set;
		}

		[NotMapped]
		public List<LoginUserInfo> ListReciever
		{
			get;
			set;
		}

		public List<MailReciever> ListMailReciever
		{
			get;
			set;
		}

	}
}
